<template>
  <el-switch v-bind="switchProps" v-on="switchEvents" />
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue';

export default defineComponent({
  name: 'BSwitch',
  props: {
    switchProps: {
      type: Object as PropType<Record<string, any>>,
      default: () => ({
        activeText: '开启',
        inactiveText: '关闭'
      })
    },
    switchEvents: {
      type: Object as PropType<Record<string, any>>,
      default: () => ({})
    }
  }
});
</script>
